import time

from Page import Page
from selenium.webdriver.common.by import By

class Page1(Page):
    # 定位器
    # 元素操作方法的封装

    # 1.搜索框-输入姓名
    name_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[1]/div/div/div/input')
    def name(self,name):
        self.send_keys(self.name_loc,name)

    # 2.点击搜索按钮
    search_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/form/div[4]/div[1]/div/div/button')
    def search(self):
        self.click(self.search_loc)



